package com.boang.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
  @author: 13813
  @date: 2024/8/30 10:53
*/
@RestController
public class OrderController {

    @Value("${server.port}")
    private String serverPort;

    @RequestMapping("/getOrder/{oid}")
    public String getOrder(@PathVariable String oid) {
        return oid + "," + serverPort;
    }
}
